﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CUIT.GraduationProject.ToolBoxSystem.PropertyLib
{
    public partial class PropertyForm : Form
    {
        public PropertyForm()
        {
            InitializeComponent();
        }

        /// <summary>
        ///  窗体加载
        /// </summary>
        /// <param name="sender">sender</param>
        /// <param name="e">e</param>
        private void PropertyForm_Load(object sender, EventArgs e)
        {
            //创建bill对象，实例化CUSTOMER类 
            Control bill = new Control();
            //赋值给属性 
            ////bill.Age = 50;
            ////bill.Address = " 114 Maple Drive ";
            ////bill.DateOfBirth = Convert.ToDateTime("2013-4-22");
            ////bill.SSN = "123-345-3566";
            ////bill.Email = "bill@aol.com";
            ////bill.Name = "Bill Smith";
            //将对象绑定到property控件中 
            propertyGrid_pro.SelectedObject = bill;

        }

        /// <summary>
        ///  设置窗体大小
        /// </summary>
        /// <param name="size">窗体大小</param>
        public void SetSize(Size size)
        {
            this.Size = size;
        }
    }
}
